﻿using Microsoft.Xna.Framework;

namespace Ah.Testudin.Engine.Events
{
    public class EventManagerSingleton
    {
        #region Private Member Variables

        private static IEventManager _eventManagerInstance;

        #endregion

        #region Properties

        public static IEventManager Instance
        {
            get
            {
                if (_eventManagerInstance == null)
                {
                    _eventManagerInstance = new EventManager(null);

                    _eventManagerInstance.Initialize();
                }

                return _eventManagerInstance;
            }
        }

        #endregion

        #region Constructors

        private EventManagerSingleton()
        {
        }

        #endregion
    }
}